﻿using Microsoft.Office.Core;
using System.Windows.Forms;

namespace 枸杞Excel插件.ThisAddin
{
    public partial class ThisAddin : IRibbonExtensibility
    {
        private IRibbonUI? RibbonUI;

        public string GetCustomUI(string RibbonID)
        {
            return Properties.Resources.ExcelRibbon;
        }

        public void OnRibbonLoad(IRibbonUI ribbonUI)
        {
            RibbonUI = ribbonUI;
        }

        public void UpdateRibbon()
        {
            RibbonUI?.Invalidate();
        }

        #region Ribbon Callbacks

        public void CustomUI_loadImage(string RibbonID)
        {
        }

        public void Buttontest_Click(IRibbonControl _)
        {
            MessageBox.Show("Test");
        }

        ////sadad

        #endregion Ribbon Callbacks
    }
}